package com.itheima.tliasbackend.mapper;

import com.itheima.tliasbackend.pojo.Dept;
import com.itheima.tliasbackend.pojo.Emp;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DeptMapper {

    @Select("select * fromdept")
    Dept selectList();

    @Delete("delete from dept where id  = #{id}")
    void deleteById(Integer id);

    void insert(Dept dept);
}